export const router = {
  disclosure: {
    title: "首页",
    file: "pages/disclosure/index",
    hasWeapp: true,
    isTabBar: true,
  },
  inquire: {
    title: "搜索",
    file: "pages/inquire/index",
    hasWeapp: true,
    isTabBar: true,
  },
  user: {
    title: "我的",
    file: "pages/user/index",
    hasWeapp: true,
    isTabBar: true,
  },
  login: {
    title: "登录",
    file: "pages/login/index",
    hasWeapp: true,
    isTabBar: false,
  },
  about: {
    title: "关于",
    file: "pages/about/index",
    hasWeapp: true,
    isTabBar: false,
  },
};

export const pages = Object.values(router).reduce((pre: string[], item) => {
  pre.push(item.file);
  return pre;
}, []);
